Skip to content

Simplify the report and open it with what to fix first - #89

Merged
Viraj5503 merged 11 commits into
refine-report-journeyfrom
simplify-report
Nov 29, 2026
Merged

Viraj5503 merged 11 commits into
refine-report-journeyfrom
simplify-report

Conversation

@Pranav-Mathad

Copy link
Copy Markdown
Owner

Cuts the web report down to what a reader needs, in the order the sponsor judges it. Web app only: no pipeline, contract or bundle change.

This branch sits on top of refine-report-journey (#88), so it is opened against that branch. Merge #88 first.

What changed

Navigation

  • Five tabs instead of seven: Report, Findings, Map, Before and after, Approach. Addresses did not change, so existing links still work.
  • Decisions and Size are reached by links (from the Report and from the Map) and no longer have tabs.
  • The header shows snapshot and commit only. The params hash moved to the Approach page.
  • The landing page shows the three reports first, then the seven stages. The fixtures are no longer linked from it; they still load by address.

Report

  • Opens with what to fix first. Each of the five rows has its stored facts, why it matters, and the proposed fix.
  • Then: the main modules beside the map, before and after the comparison date, the decisions furthest from holding, what holds, and what the report rests on.
  • The large simulated-batch band is now one line under the list.

Findings and the finding page

  • The list below the top 10 is closed by default. The ranking formula moved to the Approach page.
  • The finding page reads: facts, judgement, why it matters, proposed fix, simulation, evidence. Facts have readable labels and moved up from the side rail.
  • The computed summary no longer repeats the fix sentence. Files after the first three, and the commits, sit behind one control each.

Approach (was Trust)

  • The seven stages, with this run's stored numbers beside them. Stages 1 to 5 are computed. The model works in stage 6 only; stage 7 ranks by arithmetic.
  • The three AI jobs, the checks an answer must pass, and the usage ledger.
  • The ranking formula, the stability table, coverage, limits (5 shown), run identity.

Before and after (was Change)

  • One sentence replaces the boxed note and keeps its meaning: descriptive, no change attributed to AI tools.
  • Cards no longer repeat their own numbers in a paragraph. The per-decision table shows 8 rows, each event group 5, with a control for the rest.

Map, Decisions, Size

  • Plain headings. Modules that exist only at the before date are listed only in the Before view.
  • Each decision is one compact row; its technical detail is behind a closed control.
  • The size table shows 15 rows with a control for the rest.

Throughout

  • Slots for values a bundle does not carry are left out instead of showing "not measured".
  • One word, "decision", for the thing being checked. One set of stage names.
  • FACT_LABEL.modules_total now reads "Modules with production code", checked against analyze/findings.py.

Where this departs from spec.md

  • §10.2 and §11.4 put the decisions and the verdict first. The sponsor's Actionability criterion asks for the findings to fix first at the top, so the Report now leads with them. Every element of §11.4 is still on the page.
  • §11.4 item 3 puts the batch result above the top 10. That holds on the Findings page; on the Report it is one line under the list.
  • The Decisions page no longer repeats the top findings; each decision row links to its own.

What was run and seen

  • make check passes: ruff, 36 Python tests passed and 1 skipped, contracts check, typecheck, 4 web tests, build. No test was added or changed.
  • Every page was opened on the dev server for Artemis and read from screenshots at 1440 wide: landing, Report, Findings, a computed finding, a finding with an AI reading, Map, Decisions, Size, Before and after, Approach. Graylog, Shopware and the fixture were opened for most pages.
  • Numbers compared with the bundle for Artemis: rank-1 facts (947, 55, 2,838), the three yardsticks (20.8%, 272, 0.29), the batch (8 fixes, 304 to 285 loops), the ledger (163 calls, $2.283), the five stability rows.
  • At a true 420 px viewport the pages checked do not scroll sideways. The tab row scrolls within itself.
  • Clicked in a driven browser: a map cell (lists its links and writes the address), the size table's sort and show-all, the lower-ranked list, the extra-files and commits controls.

Not checked or not done

  • Dark mode.
  • The "Try the fix" button click, Escape to clear a map cell, hover text on the grid.
  • Shopware's Approach page and Graylog's finding pages were not read.
  • The Approach ledger shows what the bundle carries: jobs B and C. Job A's calls are only in results/<id>/usage_job_a.json (Artemis 59 calls and $1.14, Graylog 6 and $0.19, Shopware 393 and $4.81), so the page understates total AI spend. That needs a pipeline and bundle change and is not in this pull request.
  • Two fact labels were inferred from the code and are worth a second look: files ("Files holding those links") and symbol ("Declaration it imports").

Add journeys and shape the report around the judging points
@Viraj5503
Viraj5503 merged commit 7b1050e into refine-report-journey Nov 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants